<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>价格策略测试</title>
<link rel="stylesheet" type="text/css" href="../img/base.css">
<script language="javascript" src="../js/jquery-1.8.2.min.js"></script>
<script language="javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
<script >
function checksubmit()
{
	var film_id = $('#film_id').val();
	var hall_id = $('#hall').val();
	if(film_id == 0)
	{
		alert('请选择要测试影片');
		return false;
	}else if(hall_id == 0)
	{
		alert('请选择要测试的厅');
		return false;
	}
	return true;
}
</script>
</head>
<body leftmargin="8" topmargin="8" background='../img/allbg.gif'>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td align='center' valign='top'>
        	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA">
            	<tr>
                	<td width="13%"><{$cinema_info.title}></td>
                	<td width="87%" height="28" background="../img/tbg.gif">
                    	<div style="float:right;padding-right:6px;">
                            <a href='cinema.php' class='np coolbg'>返回</a>
                        </div>
                    </td>
                </tr>
            </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr bgcolor="#FFFFFF">
                	<td height="4"></td>
                </tr>
			</table>
			<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA">
				<tr>
    				<td height="26" background="../img/tbg.gif">
                    <form action="" onSubmit="return checksubmit();" method="post">
    					<table width="98%" border="0" cellspacing="2" cellpadding="0">
     						<tr>
                            	<td>测试影片：</td>
                            	<td>
                                <select id="film_id" name="film_id">
                                <option value="0" >请选择</option>
                                <{foreach from=$film_list item=film}>                          
                                <option <{if $film_id==$film.film_id}>selected<{/if}> value="<{$film.film_id}>"><{$film.film_name}></option>
                                <{/foreach}>
                                </select><span style="color:#F00"> *必选</span>
                                </td>
                                <td>测试标准价</td>
                                <td><input name="standard_price" id="standard_price" value="<{$standard_price}>" /><span style="color:#F00"> *不填则默认80元</span>
                                </td>
     						</tr>
                            <tr>
                                <td>测试日期：</td>
     							<td><input type='text' name='date_str' id="date_str" onClick="WdatePicker()" value="<{$date_str}>" /><span style="color:#F00"> *不选则默认今天</span>
                                </td>
                            	<td>场次间隔时间：</td>
     							<td>
                                	<select id="interval_time" name="interval_time">
                                    	<{foreach from=$interval_time item=interval key=key}>
                                    	<option <{if $interval_select == $key}>selected<{/if}> value="<{$key}>" ><{$interval}></option>
                                    	<{/foreach}>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td>维度：</td>
                            	<td>
                                	<select id="dimensional" name="dimensional">
                                    	<option <{if $dimensional=='2D'}>selected<{/if}>  value="2D">2D</option>
                                        <option <{if $dimensional=='3D'}>selected<{/if}>  value="3D">3D</option>
                                    </select>
                                </td>
                            	<td>购买方式：</td>
                 				<td>
                                	<select id="purchase_way" name="purchase_way">
                                    <{foreach from=$purchase_list item=purchase}>
                                    <option value="<{$purchase.purchase_way}>"><{$purchase.purchase_name}></option>
                                    <{/foreach}>
                                    </select>
                                </td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                            	<td>厅:</td>
                                <td>
                                <select name="hall" id="hall" >
                                <option value="0" >请选择</option>
                                <{foreach from=$hall_list item=hall}>
                                <option <{if $hall.hall_id==$hall_id}>selected<{/if}> value="<{$hall.hall_id}>"><{$hall.hall_name}></option>
                                <{/foreach}>
                                </select>
                                </td>
                            </tr>
                            <tr>
                            	<td colspan="4" align="center">
                                	<input type="hidden" name="op" value="search" />
                                    <input type="hidden" name="mc_cinemaid" value="<{$mc_cinemaid}>" />
                                	<input type='submit' class="coolbg np" value='搜索' />&nbsp;&nbsp;
                                </td>
                            </tr>
    					</table>
                    </form>
    				</td>
    			</tr>
 			</table>
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr bgcolor="#FFFFFF">
                	<td height="4"></td>
                </tr>
			</table>
			<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA">
				<tr bgcolor="#E7E7E7">
					<td height="24" colspan="19" background="../img/tbg.gif">§场次管理 &gt; 场次列表 &nbsp;</td>
				</tr>
                <tr align="center" bgcolor="#FAFAF1" height="22">
                    <td>电影</td>
                    <td>影院</td>
                    <td>厅</td>
                    <td>演出日期</td>
                    <td>维度</td>
                    <td>策略</td>
                    <td>标准价</td>
                    <td>最低价</td>
                    <{foreach from=$price_model_list item=price_model}>
                    <td><{$price_model.model_name}></td>
                    <{/foreach}>
                </tr>
                <{foreach item=movie_price from=$movie_price_list}>
                <tr align='center' bgcolor="#FFFFFF"  onMouseMove="javascript:this.bgColor='#f4fbf4';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                    <td><{$showing_info.film_name}></td>
                    <td><{$cinema_info.title}></td>
                    <td><{$hall_info.hall_name}></td>
                    <td><{$movie_price.show_date}></td>
                    <td><{$dimensional}></td>
                    <td><a target="_blank" href="price_ploy_cal_list.php??mc_cinemaid=<{$mc_cinemaid}>&period_id=<{$movie_price.period_id}>&ploy_id=<{$movie_price.ploy_id}>"><{$movie_price.ploy_name}></a></td>
                    <td><{$movie_price.standard_price}></td>
                    <td><{$movie_price.lowest_price}></td>
                    <td><{$movie_price.sale_price}></td>
                    <td><{$movie_price.sale_fee}></td>
                    <td><{$movie_price.vip_sale_price}></td>
                    <td><{$movie_price.vip_sale_fee}></td>
                    <td><{$movie_price.settle_price}></td>
                    <td><{$movie_price.settle_fee}></td>
                </tr>
                <{/foreach}>
                <tr bgcolor="#FAFAF1">
                	<td height="24" colspan="19"><{$page_str}></td>
                </tr>

                <!--<tr align="right" bgcolor="#EEF4EA">
                	<td height="20" colspan="9" align="center"></td>
                </tr>-->
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                	<td height="4"></td>
                </tr>
                <tr bgcolor="#FFFFFF">
                	<td height="26"></td>
                </tr>
				<tr>
					<td colspan="2" height="4"></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</body>
</html>